package com.example.demo11.service;

import com.example.demo11.dao.UserDao;
import com.example.demo11.dao.entity.UserEntity;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class IndexService {
    @Resource
    UserDao userDao;

    public String index(String name){
        return  name;
    }

    public UserEntity sel(int id){
        return userDao.Sel();
    }
}
